﻿using Swashbuckle.AspNetCore.Annotations;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.MultiTenancy;
using Xms.Abp.Data;

namespace BackgroundJobManagement;

public class BackgroundScheduleCreateOrUpdateParameterBase: IHasDisplayName, IHasEnabled, IHasRemark
{
    [Required]
    [MaxLength(128)]
    [SwaggerSchema("显示名称")]
    public string DisplayName { get; set; }
    [Required]
    [MaxLength(128)]
    [SwaggerSchema("cron时间表达式")]
    public string Cron { get; set; }
    [SwaggerSchema("多租户侧")]
    public MultiTenancySides MultiTenancySides { get; set; } = MultiTenancySides.Tenant;
    [SwaggerSchema("是否可用")]
    public bool IsEnabled { get; set; } = true;
    [SwaggerSchema("备注")]
    public string Remark { get; set; }
}
